package prototype.greatestsage;

import java.io.Serializable;

/**
 * 金箍棒
 *
 * @author cctv
 */
public class GoldRingedStaff implements Serializable {
    private float height = 100;
    private float diameter = 10;

    private TheGreatestSage tgs;
    /**
     * 变大
     */
    public void grow() {
        diameter *= 2;
        height *= 2;
    }

    /**
     * 变小
     */
    public void shrink() {
        diameter /= 2;
        height /= 2;
    }

    public TheGreatestSage getTgs() {
        return tgs;
    }

    public void setTgs(TheGreatestSage tgs) {
        this.tgs = tgs;
    }

    public float getHeight() {
        return height;
    }

    public void setHeight(float height) {
        this.height = height;
    }

    public float getDiameter() {
        return diameter;
    }

    public void setDiameter(float diameter) {
        this.diameter = diameter;
    }
}
